Logging trace to /var/log/clickhouse-server/clickhouse-server.log Logging errors to /var/log/clickhouse-server/clickhouse-server.err.log /build/src/Interpreters/AggregationCommon.h:180:40: runtime error: downcast of address 0x7fb8e0010c80 which does not point to an object of type 'const ColumnFixedSizeHelper' 0x7fb8e0010c80: note: object is of type 'DB::ColumnConst' 00 00 00 00 08 61 a3 a4 e0 55 00 00 01 00 00 00 00 00 00 00 00 f1 00 e0 b8 7f 00 00 01 00 00 00 ^~~~~~~~~~~~~~~~~~~~~~~ vptr for 'DB::ColumnConst' #0 0x55e09f627c5c in wide::integer<256ul, unsigned int> DB::packFixed, false>(unsigned long, unsigned long, std::__1::vector> const&, std::__1::vector> const&, std::__1::vector> const*, std::__1::vector> const*) build_docker/./src/Interpreters/AggregationCommon.h:180:40 #1 0x55e09f627c5c in DB::ColumnsHashing::HashMethodKeysFixed, wide::integer<256ul, unsigned int>, void, false, false, true, false>::getKeyHolder(unsigned long, DB::Arena&) const build_docker/./src/Common/ColumnsHashing.h:647:20 #2 0x55e09f627c5c in DB::ColumnsHashing::columns_hashing_impl::EmplaceResultImpl DB::ColumnsHashing::columns_hashing_impl::HashMethodBase, wide::integer<256ul, unsigned int>, void, false, false, true, false>, wide::integer<256ul, unsigned int>, void, true, false, false>::emplaceKey, HashTableCell, UInt256HashCRC32, HashTableNoState>, UInt256HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>>(HashSetTable, HashTableCell, UInt256HashCRC32, HashTableNoState>, UInt256HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>&, unsigned long, DB::Arena&) build_docker/./src/Common/ColumnsHashingImpl.h:211:57 #3 0x55e09f627c5c in void DB::DistinctTransform::buildFilter, HashTableCell, UInt256HashCRC32, HashTableNoState>, UInt256HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, false>>(DB::SetMethodKeysFixed, HashTableCell, UInt256HashCRC32, HashTableNoState>, UInt256HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, false>&, std::__1::vector> const&, DB::PODArray, 63ul, 64ul>&, unsigned long, DB::SetVariantsTemplate&) const build_docker/./src/Processors/Transforms/DistinctTransform.cpp:43:37 #4 0x55e09f6228f5 in DB::DistinctTransform::transform(DB::Chunk&) build_docker/./src/Processors/Transforms/DistinctTransform.cpp:92:9 #5 0x55e094aaef2a in DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) build_docker/./src/Processors/ISimpleTransform.h:32:9 #6 0x55e09f017bac in DB::ISimpleTransform::work() build_docker/./src/Processors/ISimpleTransform.cpp:89:9 #7 0x55e09f048e4f in DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) build_docker/./src/Processors/Executors/ExecutionThreadContext.cpp:47:26 #8 0x55e09f048e4f in DB::ExecutionThreadContext::executeTask() build_docker/./src/Processors/Executors/ExecutionThreadContext.cpp:95:9 #9 0x55e09f03759a in DB::PipelineExecutor::executeStepImpl(unsigned long, std::__1::atomic*) build_docker/./src/Processors/Executors/PipelineExecutor.cpp:273:26 #10 0x55e09f03759a in DB::PipelineExecutor::executeSingleThread(unsigned long) build_docker/./src/Processors/Executors/PipelineExecutor.cpp:239:5 #11 0x55e09f035376 in DB::PipelineExecutor::executeImpl(unsigned long, bool) build_docker/./src/Processors/Executors/PipelineExecutor.cpp:411:9 #12 0x55e09f034f89 in DB::PipelineExecutor::execute(unsigned long, bool) build_docker/./src/Processors/Executors/PipelineExecutor.cpp:111:9 #13 0x55e09f04e610 in DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::__1::shared_ptr, unsigned long, bool) build_docker/./src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:83:24 #14 0x55e09f04e610 in DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const build_docker/./src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:109:13 #15 0x55e09f04e610 in decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 #16 0x55e09f04e610 in decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 #17 0x55e09f04e610 in decltype(auto) std::__1::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 #18 0x55e09f04e610 in ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:225:13 #19 0x55e09f04e610 in decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 #20 0x55e09f04e610 in void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 #21 0x55e09f04e610 in std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 #22 0x55e09f04e610 in void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 #23 0x55e090238317 in std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 #24 0x55e090238317 in std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 #25 0x55e090238317 in ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:536:17 #26 0x55e09023ea09 in void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:253:73 #27 0x55e09023ea09 in decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 #28 0x55e09023ea09 in void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 #29 0x55e09023ea09 in void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 #30 0x7fb9f90d4ac2 (/lib/x86_64-linux-gnu/libc.so.6+0x94ac2) (BuildId: 490fef8403240c91833978d494d39e537409b92e) #31 0x7fb9f916684f (/lib/x86_64-linux-gnu/libc.so.6+0x12684f) (BuildId: 490fef8403240c91833978d494d39e537409b92e) SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /build/src/Interpreters/AggregationCommon.h:180:40 in